home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / screamin_upstreamin.swf / scripts / DefineSprite_184 / frame_1 / PlaceObject3_62_34 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2012-01-07  |  363b  |  14 lines

  1. onClipEvent(enterFrame){
  2.    _root.cashDisplay = _root.level * 10;
  3.    if(_Y >= occurrence)
  4.    {
  5.       var occurrence = Math.round(Math.random() * frequency) + 300;
  6.       var xPos = -110 + Math.round(Math.random() * xPosVara);
  7.       _Y = startPos;
  8.       _X = xPos;
  9.       _visible = true;
  10.       hitObject = "on";
  11.    }
  12.    _Y = _Y + _root.busSpeed / 2;
  13. }
  14.